package com.lxk.ums.domain.bo;

import com.lxk.ums.domain.UmsUser;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用户业务对象 ums_user
 *
 * @author LXK-RY5
 * @date 2024-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UmsUser.class, reverseConvertGenerate = false)
public class UmsUserBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空", groups = { AddGroup.class})
    private String userName;

    /**
     * 用户昵称
     */
    @NotBlank(message = "用户昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickName;

    /**
     * 用户类型
     */
    @NotBlank(message = "用户类型不能为空", groups = { AddGroup.class})
    private String userType;

    /**
     * 一句话介绍
     */
//    @NotBlank(message = "一句话介绍不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introduce;

    /**
     * 用户邮箱
     */
//    @NotBlank(message = "用户邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String email;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class})
    private String phonenumber;

    /**
     * 用户性别（0男 1女 2未知）
     */
//    @NotBlank(message = "用户性别（0男 1女 2未知）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sex;

    /**
     * 头像地址
     */
//    @NotBlank(message = "头像地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 密码
     */
//    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 帐号状态（0正常 1停用）
     */
    @NotBlank(message = "帐号状态（0正常 1停用）不能为空", groups = { AddGroup.class })
    private String status;

    /**
     * 最后登录IP
     */
    @NotBlank(message = "最后登录IP不能为空", groups = { AddGroup.class})
    private String loginIp;

    /**
     * 最后登录时间
     */
    @NotNull(message = "最后登录时间不能为空", groups = { AddGroup.class})
    private Date loginDate;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class })
    private String remark;

    /**
     * 微APPOPENID
     */
    @NotBlank(message = "微APPOPENID不能为空", groups = { AddGroup.class})
    private String wxAppOpenId;

    /**
     * 微信unionid
     */
    @NotBlank(message = "微信unionid不能为空", groups = { AddGroup.class})
    private String wxUnionidId;

    /**
     * 微信小程序openId
     */
    @NotBlank(message = "微信小程序openId不能为空", groups = { AddGroup.class})
    private String wxMiniAppOpenId;

    /**
     * 微信公众号openId
     */
    @NotBlank(message = "微信公众号openId不能为空", groups = { AddGroup.class})
    private String wxMpAppOpenId;

    /**
     * 微信网页openId
     */
    @NotBlank(message = "微信网页openId不能为空", groups = { AddGroup.class })
    private String wxPcOpenId;

    /**
     * 用户编号
     */
    @NotBlank(message = "用户编号不能为空", groups = { AddGroup.class })
    private String userSn;

    /**
     * 邀请人code
     */
    @NotBlank(message = "邀请人code不能为空", groups = { AddGroup.class })
    private String inviterCode;

    /**
     * 注册设备类型，IOS，Android
     */
    @NotBlank(message = "注册设备类型，IOS，Android不能为空", groups = { AddGroup.class })
    private String registerDeviceType;


}
